<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            list-style: none;
            margin: 0px;
            padding: 0px;
            }
        .q1{
            height: 60px;
            overflow: hidden;
        }
        .q1 .right{
            float: right;
        }
        .q1 .left{
            float: left;
        }
        .q1 a{
            float: left;
            text-decoration: none;
            line-height: 45px;
            background: white;
            margin: 15px 20px 15px;
            color: black;
        }
        .q1 .right .b1{
            background: #4e6ef2;
            color: white;
            border-radius: 6px;
            border: 1px solid  #4e6ef2;
        }
            .q2 input
            {
                float: left;
                width: 538px;
                height: 38px;
                border:1px solid #ccc;
                border-right: none;
                outline: none;
        }
        .q2 {
                width: 640px;
                position: relative;
                height: 39px;
                background: red;
                margin:60px auto 120px;
                }

        .q2 button{
                float: right;
                width: 100px;
                height: 39px;
                background:  #4e6ef2;
                border:none;
                outline: none; 
                color: white;
        }
        .q2 span{
                top:11px;
                width: 17px;
                height: 16px;
                position: absolute;
                left: 510px;
                background:url('images/02.png') no-repeat 0px 0px;
        }
        .q3{
            margin-top: 210px;
            text-align: center;
            font-size: 20px;
            height: 150px;
            background: white;
            color:#bbb;
            }
        h1{
                text-align: center;
        }
        h1 img{
                height: 75px;
                margin-top: 100px;
        }
        p{
                text-align: center;
                font-size: 20px;
                color:#ccc;
        }
        p a{
                text-decoration: none;
                color:#ccc;
                margin-right: 10px;
        }
        .a3{
            margin-top: 200px;
        }
        i{
                display: inline-block;
                background:url('images/04.png') no-repeat ;
            }
            .s1{
                width: 17px;
                height: 16px;
                background-position: -596px -94px
            }
            .s2{
                width: 17px;
                height: 16px;
                background-position: -620px -94px;
            }
    </style>
</head>
<body>
    <div class="a1">
        <div class="left">
            <a href="">新闻</a>
            <a href="">hao123</a>
            <a href="">地图</a>
            <a href="">直播</a>
            <a href="">视频</a>
            <a href="">贴吧</a>
            <a href="">学术</a>
            <a href="">更多</a>
        </div>
        <div class="right">
            <a href="">设置</a>
            <a href="" class="b1">登录</a>
        </div>
    </div>
    <h1><a href=""><img src="images/01.gif" alt=""></a></h1>
    <div class="q2">
        <input type="text">
        <button>百度一下</button>
        <span></span>
        </div>
        <div class="q3">
        <p>
            <img src="images/03.png" alt="">
            <br>
            <span>手机百度</span>
        </p>
        <p>     <a href="">把百度设为主页</a> 
            <a>关于百度About</a>  
            <a href="">Baidu</a> 
            <a>百度推广</a>           
        </p>
            <p> ?2016 Baidu <a>使用百度前必读</a> <a>意见反馈</a> 京ICP证030173号<i class="s1"></i>  <a>京公网安备11000002000001号</a> <i class="s2"></i>
            </p>
        </div>
    </body>
</body>
</html>